package cn.tedu.charging.order.config;

import cn.tedu.charging.common.pojo.utils.SnowflakeIdGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SnowFlakeConfiguration {
    //创建一个初始化雪花算法工具对象
    @Bean
    public SnowflakeIdGenerator snowflakeIdGenerator() {
        return new SnowflakeIdGenerator();
    }
}
